var cityJS = require('../../utils/city')


var proviceData = new Array(), cityData = new Array(), districtData = new Array();
var proviceNum = 0, cityNum = 0, districtNum = 0;
var provice, city, district;

Page({
  data: {

  },
  /**
   * 初始化区域数据
   */
  onLoad: function () {
    var that = this;
    var data = that.data;
    cityJS.init(that);
  },
  /**
   * 页面选址触发事件
   */
  choosearea: function () {
    this.setData({
      isShow: true
    })
  },
  /**
   * 滑动事件
   */
  bindChange: function (e) {
    const current_value = e.detail.value;
    cityJS.change(current_value,this);
  }
})
